export default {
    data() {
        return {
            data: {
                customer_id: 0,
                products: [],
                areas: [],
                freight: 0,
                buyer_type: "1"
            },
            ruleValidate: {
                number: [{required: true, message: '订单号必须填写'}],
                customer_id: [{required: true, message: '客户名称必须填写'}],
                express_id: [{required: true, message: '快递公司必须填写'}],
                freight: [{required: true, message: '运费必须填写', type: 'number'}],

                buyer_name: [{required: true, message: '订购人必须填写'}],
                receiving_name: [{required: true, message: '收货人必须填写'}],
                receiving_phone: [{required: true, message: '收货人电话必须填写'}],
                buyer_type: [{required: true, message: '订购人证件类型必须填写'}],
                buyer_number: [{required: true, message: '订购人证件必须填写'}],
                buyer_telephone: [{required: true, message: '订购人电话必须填写'}],
                areas: [{required: true, message: '省/市/区必须填写', type: 'array', len: 3}],
                address: [{required: true, message: '收件详细地址必须填写'}],

                ebc_code: [{required: true, message: '电商企业代码必须填写', len: 10}],
                ebc_name: [{required: true, message: '电商企业名称必须填写'}],
                ebp_code: [{required: true, message: '电商平台代码必须填写', len: 10}],
                ebp_name: [{required: true, message: '电商平台名称必须填写'}],

                remark: [{max: 255, message: '备注最大长字符长度'}],
            }
        }
    }
}
